
/*******
*
*
* 		登录
*

$("#useridl").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=login&dopost=userid&uid="+$("#useridl").val(),
		dataType: 'html',
		success: function(result){
			$("#_useridlmsg").html(result);
		}
	}); 
});
$("#pwdl").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=login&dopost=ckpwd&uid="+$("#useridl").val()+"&pwd="+$("#pwdl").val(),
		dataType: 'html',
		success: function(result){
			$("#_pwdlmsg").html(result);
		}
	}); 
});

//检测登录验证码
$("#vdcode").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=login&dopost=ckvdcode&vdcode="+$("#vdcode").val(),
		dataType: 'html',
		success: function(result){
			$("#_vdcodelmsg").html(result);
		}
	}); 
});



/*******
*
*
* 		注册
*


//检测用户名是否已存在
$("#userid").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=ureg&dopost=userid&uid="+$("#userid").val(),
		dataType: 'html',
		success: function(result){
			$("#_useridmsg").html(result);
		}
	}); 
});

//检测密码是否大于8位
$("#userpwd").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=ureg&dopost=userpwd&pwd="+$("#userpwd").val(),
		dataType: 'html',
		success: function(result){
			$("#_userpwdmsg").html(result);
		}
	}); 
});

//检测两次输入密码是否一致
$("#userpwdok").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=ureg&dopost=userpwdok&pwd="+$("#userpwd").val()+"&pwd2="+$("#userpwdok").val(),
		dataType: 'html',
		success: function(result){
			$("#_userpwdokmsg").html(result);
		}
	}); 
});

//检测邮箱格式是否正确和是否已存在
$("#email").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=ureg&dopost=email&email="+$("#email").val(),
		dataType: 'html',
		success: function(result){
			$("#_emailmsg").html(result);
		}
	}); 
});

//检测登录验证码
$("#vdcode").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=ureg&dopost=ckvdcode&vdcode="+$("#vdcode").val(),
		dataType: 'html',
		success: function(result){
			$("#_vdcodelmsg").html(result);
		}
	}); 
});


/*******
*
*
* 		找回密码
*


//检测邮箱格式是否已存在
$("#mail").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=reseck&dopost=ckmail&mail="+$("#mail").val(),
		dataType: 'html',
		success: function(result){
			$("#_mailmsg").html(result);
		}
	}); 
});

//密码对比
$("#pwdrese").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=reseck&dopost=ckpwd&pwd="+$("#pwdrese").val(),
		dataType: 'html',
		success: function(result){
			$("#_pwdresemsg").html(result);
		}
	}); 
});

//密码对比
$("#pwdokrese").change( function() {
		$.ajax({type: reMethod,url: "ckuser.php",
		data: "fmdo=reseck&dopost=ckpwd2&pwd="+$("#pwdrese").val()+"&pwdok="+$("#pwdokrese").val(),
		dataType: 'html',
		success: function(result){
			$("#_pwdokresemsg").html(result);
		}
	}); 
});
*/